package com.samshow.base.util;

import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Random;

/**
 * Created by niwb on 2017/2/22.
 */
public class BaseUtil {

    private static Random random = new Random();

    public static int getRandom(int max) {
        return random.nextInt(max);
    }

    public static Timestamp getCurrentTimestamp() {
        return new Timestamp(Calendar.getInstance().getTimeInMillis());
    }
}
